package com.victor.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.victor.entity.Seriesandpicbook;

@Mapper
public interface SeriesandpicbookDao {

	int batchDelete(@Param("ids") int[] ids);

	int insert(Seriesandpicbook record);

	Seriesandpicbook findById(Integer spId);

	int update(Seriesandpicbook record);

	List<Seriesandpicbook> findBySid(Integer sid);

	int batchInsert(@Param("spSid") Integer sId, @Param("spPids") int[] pictureIds);

	int deletePictures(@Param("sid") String sid, @Param("ids") int[] ids);

	int deletePicturesBySids(@Param("sids") int[] sids);
}